<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	// 判断两个数值是否相等 相当于===,修复NaN不等自己的问题  NaN
	let a = 1;
	let b = "1";
	console.log(a === b);// false
	console.log(a == b);// true
	
	console.log(Object.is(a,b));// false
	console.log(Object.is(1,1));// true
	console.log(Object.is(null,null));// true
	console.log(Object.is(undefined,undefined));// true
	console.log(Object.is({},{}));// false
	console.log(Object.is(NaN,NaN));// true
	console.log(NaN === NaN);// false
	
</script>
</html>